package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("clazz")
public class Clazz {
    private Integer id; //ID
    private String name; //班级名称
    private String room; //班级教室
    @TableField("begin_date")
    private LocalDate beginDate; //开课时间
    @TableField("end_date")
    private LocalDate endDate; //结课时间
    @TableField("master_id")
    private Integer masterId; //班主任
    private Integer subject; //学科
    @TableField("create_time")
    private LocalDateTime createTime; //创建时间
    @TableField("update_time")
    private LocalDateTime updateTime; //修改时间
    @TableField(exist = false)
    private String masterName; //班主任姓名
    @TableField(exist = false)
    private String status; //班级状态 - 未开班 , 在读 , 已结课
}